package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoSystem;
import com.yipao.db.domain.YipaoSystemExample;

/**
 * @author tianhao
 */
public interface SystemMapper {

    long countByExample(YipaoSystemExample example);


    int deleteByExample(YipaoSystemExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoSystem record);


    int insertSelective(YipaoSystem record);


    YipaoSystem selectOneByExample(YipaoSystemExample example);


    YipaoSystem selectOneByExampleSelective(@Param("example") YipaoSystemExample example, @Param("selective") YipaoSystem.Column ... selective);


    List<YipaoSystem> selectByExampleSelective(@Param("example") YipaoSystemExample example, @Param("selective") YipaoSystem.Column ... selective);


    List<YipaoSystem> selectByExample(YipaoSystemExample example);


    YipaoSystem selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoSystem.Column ... selective);


    YipaoSystem selectByPrimaryKey(Integer id);


    YipaoSystem selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoSystem record, @Param("example") YipaoSystemExample example);


    int updateByExample(@Param("record") YipaoSystem record, @Param("example") YipaoSystemExample example);


    int updateByPrimaryKeySelective(YipaoSystem record);


    int updateByPrimaryKey(YipaoSystem record);


    int logicalDeleteByExample(@Param("example") YipaoSystemExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
